import { validateNumber, validateInter, isMobile, isIdCard, logitude, latitude } from "@/util/rulesReg";
export const column = [{
		label: '设备名称',
		prop: 'name',
		rules: [{
			required: true,
			message: "请输入设备名称",
			trigger: "blur"
		}]
	},
	{
		label: '所属项目',
		prop: 'deptInfoId',
		type: "select",
		dataType: "string",
		dicUrl: "/api/squirrel-ficm/deptinfo/getProjectList",
		props: {
			label: "deptName",
			value: "id"
		},
		hide:true,
		rules: [{
			required: true,
			message: "请选择所属项目",
			trigger: "blur"
		}]
	},
    {
		label: '所属点位',
		prop: 'siteName',
		display:false
	},		
    {
		label: '所属项目名称',
		prop: 'deptName',
		display:false
	},	
	{
		label: "所属点位",
		prop: "siteInfoId",
		multiple: true,
		span: 12,
		hide:true,
		type: "tree",
		dicData: [],
		props: {
			label: "siteName",
			value:'siteId'
		},
		checkStrictly: true,
		rules: [{
			required: true,
			message: "请选择所属点位",
			trigger: "click"
		}]
	},
	{
		label: '推流地址',
		prop: 'streamAddress',
		span: 12,
		rules: [{
			required: true,
			message: "请输入推流地址",
			trigger: "blur"
		}]
	},
	{
		label: '回播地址',
		prop: 'playbackAddress',
		span: 12
	},	
	{
		label: 'ip地址',
		prop: 'deptVideoAddress',
		span: 12,
		hide:true,
		disabled:true,
		value:''
	},
	{
		label: '用户账号',
		prop: 'account',
		span: 12,
		hide:true,
		disabled:true,
		value:''
	},
	{
		label: '用户密码',
		prop: 'password',
		span: 12,
		hide:true,
		disabled:true,
		value:''
	},
]